package com.similarworld.model;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Item lar icin Rate entity
 * Bunu kullanmamizin nedeni
 * hangi kullanicinin  bir item'a
 * kac puan verdigini bilmek.
 * 
 * @author erdal.bitik
 * */

@Entity
@Table(name="ITEM_RATES")
public class ItemRate extends AbstractModel {

	private static final long serialVersionUID = 1L;
	
	@ManyToOne
	@JoinColumn(name = "ITEM_ID")
	private Item item;
	
	private Integer rate;

	public Item getItem() {
		return item;
	}

	public void setItem(Item item) {
		this.item = item;
	}

	public Integer getRate() {
		return rate;
	}

	public void setRate(Integer rate) {
		this.rate = rate;
	}
	
}
